import React from 'react';
import type { ReactNode } from 'react';
import { AppContextProvider } from '../context/AppContext';

interface AppProviderProps {
  children: ReactNode;
}

/**
 * 应用全局Provider，使用Context API管理全局状态
 * 集中管理全局状态、主题和国际化相关配置
 */
const AppProvider: React.FC<AppProviderProps> = ({ children }) => {
  return (
    <AppContextProvider>
        {children}
    </AppContextProvider>
  );
};

export default AppProvider;